package org.lgiavedoni.android.franq.event.listener.sms.notification;

import org.lgiavedoni.android.franq.core.bean.SMS;
import org.lgiavedoni.android.franq.core.communication.CommunicationType;
import org.lgiavedoni.android.franq.core.message.MessageOut;

public class SMSFromUserNotification extends MessageOut {
	private final SMS sms;

	public SMSFromUserNotification(SMS sms) {
		super("SMS From [" + sms.getFromText() + "]: " + sms.getText());
		this.sms = sms;
	}

	@Override
	public String getText(CommunicationType cType) {
		if (CommunicationType.voice.equals(cType)) {
			return "SMS From [" + sms.getFromText() + "]";
		}
		return super.getText(cType);
	}

}
